package net.proef.sample.aspect;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import net.proef.sample.service.BookService;

/**
 * The Aspect MyAspect.
 *
 * @author Sander Smeman
 * @since 0.1
 */
public aspect MyAspect {
    private Logger logger = LoggerFactory.getLogger(MyAspect.class);

    pointcut logAccess() : execution(public * BookService.get*(..));

    before() : logAccess() {
	logger.trace("Before '{}' at {}", thisJoinPoint.getSignature(), thisJoinPoint.getSourceLocation());
    }
}